package com.ruoyi.basebill.mapper;

import java.util.List;
import com.ruoyi.basebill.domain.OmsSumsaleissuebill;
import com.ruoyi.basebill.domain.OmsSumsaleissuebillentry;

/**
 * 汇总销售出库单Mapper接口
 * 
 * @author wenyixiong
 * @date 2023-02-18
 */
public interface OmsSumsaleissuebillMapper 
{
    /**
     * 查询汇总销售出库单
     * 
     * @param id 汇总销售出库单主键
     * @return 汇总销售出库单
     */
    public OmsSumsaleissuebill selectOmsSumsaleissuebillById(Long id);

    /**
     * 查询汇总销售出库单列表
     * 
     * @param omsSumsaleissuebill 汇总销售出库单
     * @return 汇总销售出库单集合
     */
    public List<OmsSumsaleissuebill> selectOmsSumsaleissuebillList(OmsSumsaleissuebill omsSumsaleissuebill);


    /**
     * 查询汇总销售出库单列表详情
     */
    public List<OmsSumsaleissuebill> selectOmsSumsaleissuebillDetailList(OmsSumsaleissuebill omsSumsaleissuebill);

    /**
     * 新增汇总销售出库单
     * 
     * @param omsSumsaleissuebill 汇总销售出库单
     * @return 结果
     */
    public int insertOmsSumsaleissuebill(OmsSumsaleissuebill omsSumsaleissuebill);

    /**
     * 修改汇总销售出库单
     * 
     * @param omsSumsaleissuebill 汇总销售出库单
     * @return 结果
     */
    public int updateOmsSumsaleissuebill(OmsSumsaleissuebill omsSumsaleissuebill);

    /**
     * 删除汇总销售出库单
     * 
     * @param id 汇总销售出库单主键
     * @return 结果
     */
    public int deleteOmsSumsaleissuebillById(Long id);

    /**
     * 批量删除汇总销售出库单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmsSumsaleissuebillByIds(Long[] ids);

    /**
     * 批量删除汇总销售出库单明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmsSumsaleissuebillentryByParentids(Long[] ids);
    
    /**
     * 批量新增汇总销售出库单明细
     * 
     * @param omsSumsaleissuebillentryList 汇总销售出库单明细列表
     * @return 结果
     */
    public int batchOmsSumsaleissuebillentry(List<OmsSumsaleissuebillentry> omsSumsaleissuebillentryList);
    

    /**
     * 通过汇总销售出库单主键删除汇总销售出库单明细信息
     * 
     * @param id 汇总销售出库单ID
     * @return 结果
     */
    public int deleteOmsSumsaleissuebillentryByParentid(Long id);

    /**
     * 查询是否推送过EAS的汇总销售出库单数据
     * @param isTrans
     * @return
     */
    public List<OmsSumsaleissuebill> selectPushEASSumSaleissuebillList(int isTrans);
}
